﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.UrlReferrer != null)
                ViewState["UrlReferrer"] = Request.UrlReferrer.ToString();
        }


    
    }


    protected void Button1_Click(object sender, EventArgs e)
    {
        this.Button1.Text = "登录成功";
        
        this.Session[QueryStrings.Uid] = 2;

   //     Response.Redirect(ViewState["UrlReferrer"].ToString());
        Response.Redirect("new3.aspx");

    }

}